import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;



public class Collection1{

	public static void main(String[] Mahesh){
		
	ArrayList<Employee> listofStr = new ArrayList<Employee>();
	
	
	listofStr.add(new Employee(10, "kumar"));
	listofStr.add(new Employee(11, "Superman"));
	listofStr.add(new Employee(110, "Spiderman"));
	listofStr.add(new Employee(130, "Ninja"));
	listofStr.add(new Employee(510 ,"Kung fu"));


 
    Collections.sort(listofStr);
System.out.println(listofStr);

	}

	
}




